/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ConfigAndTypePanel.java
 *
 * Created on 21 Feb 2011, 10:26:37 AM
 */
package za.co.pas.spaceandtime.view.panel;

import java.awt.LayoutManager;
import java.beans.PropertyChangeEvent;
import javax.swing.GroupLayout;
import javax.swing.JPanel;
import za.co.pas.business.abstracts.AbstractView;
import za.co.pas.business.view.panel.ConfigListPanel;

/**
 *
 * @author alabuschagne
 */
public class ConfigAndTypePanel extends JPanel implements AbstractView
{

    private ConfigListPanel configListPanel = new ConfigListPanel();
    private CAndPPanel cAndPPanel = new CAndPPanel();
    /** Creates new form ConfigAndTypePanel */
    public ConfigAndTypePanel()
    {
        initComponents();
        ownInit();
    }

    private void ownInit()
    {
        /*GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);*/
        try
        {
            jTabbedPane1.addTab("System", configListPanel);
            jTabbedPane1.addTab("Specific", cAndPPanel);
        }
        catch (Exception e)
        {
            System.err.println(e.getMessage());
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();

        setLayout(new java.awt.BorderLayout());
        add(jTabbedPane1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables

    @Override
    public void modelPropertyChange(PropertyChangeEvent evt)
    {
    }

    @Override
    public boolean isDirty()
    {
        return false;//all stuff will be saved immediatly
    }

    @Override
    public String getExtraTitle()
    {
        return null;
    }
}
